//引入Vue
import Vue from 'vue'
//引入App
import App from './App.vue'

import router from './router'

import store from  './store'

import './utils/dayjs'


import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
import './styles/index.less'
import './styles/iconfont.css'
Vue.use(Vant)
import { Lazyload } from 'vant';
Vue.use(Lazyload);
import 'lib-flexible'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import * as echarts from 'echarts'
// permission control
Vue.prototype.$echarts = echarts//全局使用this.$echarts
Vue.use(VueAwesomeSwiper)

import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
Vue.use(VideoPlayer)
//关闭Vue的生产提示
Vue.config.productionTip = false

router.afterEach(() => {
  window.scrollTo(0,0); //切换路由之后滚动条始终在最顶部
});


//创建vm
new Vue({
	el:'#app',
	router,
	store,
	render: h => h(App),

})
